PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-13 10:11:42.845617+00:00 (UTC)
In US/Central Time, this is 2024-03-13 05:11:42.845617-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../_images/8a4df5cdab7cdb8dfec654b82acefba913ecec41161933bcc8bb7a3a1b768a11.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../_images/9c3b1a30444ab487eedfdf0c4964275003395e456d85e2cc183e43156e8fe1b2.png
fig = px.line(vix)
fig.show()
../_images/7eb3912dc05d525f824806d5c298ce7d61a77acdeba81242b98b0cdd42ca9c6a.png